package com.zyz.M_File和IO流.IO流.转换流;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author: vick
 * @Date: 2025/4/10
 * @Description:
 * @version: 1.0
 */
//问题引出
public class Demo1 {
    public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader(new File("C:\\Users\\14338\\Desktop\\file.txt"));
        int data;
        while ((data = fileReader.read()) != -1) {
            System.out.print((char) data);
        }
        fileReader.close();
    }
}
